package com.ruoyi.report.forms.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户管理对象 ct_user
 * 
 * @author taoyunli
 * @date 2024-05-14
 */
public class CtUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "主键")
    private String userId;

    /** 用户编码 */
    @Excel(name = "用户编码")
    private String userCode;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 密码 */
    @Excel(name = "密码")
    private String userPass;

    /** 是否企业管理员，0：否，1：是 */
    @Excel(name = "是否企业管理员，0：否，1：是")
    private Long isAdmin;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 状态 */
    @Excel(name = "状态")
    private Long state;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String addr;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 所属组织 */
    @Excel(name = "所属组织")
    private String orgId;

    /** 所属公司 */
    @Excel(name = "所属公司")
    private String companyId;

    /** 用户主题 */
    @Excel(name = "用户主题")
    private String userTheme;

    /** 锁定时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "锁定时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lockingTime;

    /** 是否在线 */
    @Excel(name = "是否在线")
    private Long isOnline;

    /** 岗位(1巡检，2安检，3应急抢险人员，4维修人员，5泄露监测，6抄表人员，7技术专家，8非居民) */
    @Excel(name = "岗位(1巡检，2安检，3应急抢险人员，4维修人员，5泄露监测，6抄表人员，7技术专家，8非居民)")
    private String post;

    /** 到期时间 */
    @Excel(name = "到期时间")
    private String validTime;

    /** 责任(1巡检负责人,2安检负责人) */
    @Excel(name = "责任(1巡检负责人,2安检负责人)")
    private String duty;

    /** 系统版本：2二维3三维 */
    @Excel(name = "系统版本：2二维3三维")
    private Long systemVersion;

    /** sn号 */
    @Excel(name = "sn号")
    private String sn;

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setUserCode(String userCode) 
    {
        this.userCode = userCode;
    }

    public String getUserCode() 
    {
        return userCode;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserPass(String userPass) 
    {
        this.userPass = userPass;
    }

    public String getUserPass() 
    {
        return userPass;
    }
    public void setIsAdmin(Long isAdmin) 
    {
        this.isAdmin = isAdmin;
    }

    public Long getIsAdmin() 
    {
        return isAdmin;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setAddr(String addr) 
    {
        this.addr = addr;
    }

    public String getAddr() 
    {
        return addr;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setOrgId(String orgId) 
    {
        this.orgId = orgId;
    }

    public String getOrgId() 
    {
        return orgId;
    }
    public void setCompanyId(String companyId) 
    {
        this.companyId = companyId;
    }

    public String getCompanyId() 
    {
        return companyId;
    }
    public void setUserTheme(String userTheme) 
    {
        this.userTheme = userTheme;
    }

    public String getUserTheme() 
    {
        return userTheme;
    }
    public void setLockingTime(Date lockingTime) 
    {
        this.lockingTime = lockingTime;
    }

    public Date getLockingTime() 
    {
        return lockingTime;
    }
    public void setIsOnline(Long isOnline) 
    {
        this.isOnline = isOnline;
    }

    public Long getIsOnline() 
    {
        return isOnline;
    }
    public void setPost(String post) 
    {
        this.post = post;
    }

    public String getPost() 
    {
        return post;
    }
    public void setValidTime(String validTime) 
    {
        this.validTime = validTime;
    }

    public String getValidTime() 
    {
        return validTime;
    }
    public void setDuty(String duty) 
    {
        this.duty = duty;
    }

    public String getDuty() 
    {
        return duty;
    }
    public void setSystemVersion(Long systemVersion) 
    {
        this.systemVersion = systemVersion;
    }

    public Long getSystemVersion() 
    {
        return systemVersion;
    }
    public void setSn(String sn) 
    {
        this.sn = sn;
    }

    public String getSn() 
    {
        return sn;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("userCode", getUserCode())
            .append("userName", getUserName())
            .append("userPass", getUserPass())
            .append("isAdmin", getIsAdmin())
            .append("phone", getPhone())
            .append("state", getState())
            .append("addr", getAddr())
            .append("email", getEmail())
            .append("orgId", getOrgId())
            .append("companyId", getCompanyId())
            .append("userTheme", getUserTheme())
            .append("lockingTime", getLockingTime())
            .append("isOnline", getIsOnline())
            .append("post", getPost())
            .append("validTime", getValidTime())
            .append("duty", getDuty())
            .append("systemVersion", getSystemVersion())
            .append("sn", getSn())
            .toString();
    }
}
